<html>
    
    <head>
        <meta charset="utf-8" />
        <title>Login</title>
        <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
        <link rel="stylesheet" type="text/css" href="css/fillcolor.css" />
        <link rel="stylesheet" type="text/css" href="css/login.css" />
        <script type="text/javascript">
            // 判断是否为手机访问
    function browserRedirect() {
        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
        if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
            location.href = "m.login.html";
        }
    }
    browserRedirect();
        </script>
    </head>
    
    <body id="jSouperApp">
        <!--登陆-->
        <div class="loginbox {{$Cache_is_new_user&&'focus'}}">
            <div class="userimg"></div>
            <div class="textinfo">
                <input placeholder="用户名" type="text" name="uname" bind-input="{{'$Cache_user_login_name'}}" bind-value="{{$Cache_user_login_name}}"
                />
                <input placeholder="密码" type="password" name="pwd" bind-input="{{'$Cache_user_login_pwd'}}" event-enter="{{'$Event.user_login'}}"
                />
            </div>
            <div class="icon-queding" event-click="{{'$Event.user_login'}}" title="登陆"></div>
            <div class="choice">
                <div class="item">
                    <i class="icon-squarecheck"></i>记住账号</div>
                <div class="item" event-click="{{'$Event.user_login_change_type'}}">
                    <i name="teacher" class="{{$Cache_user_login_type&&'icon-squarecheck'||'icon-square'}}"></i>教员登陆</div>
                <div class="item" event-click="{{'$Event.is_new_user'}}">新用户注册</div>
            </div>
        </div>
        <!--注册-->
        <div class="register {{$Cache_is_new_user&&'focus'}}">
            <input placeholder="请输入用户名" type="text" bind-input="{{'$Cache_new_user.name'}}" />
            <input placeholder="请输入密码" type="password" bind-input="{{'$Cache_new_user.pwd'}}" />
            <input placeholder="请再次输入密码" type="password" bind-input="{{'$Cache_new_user.repwd'}}" />
            <input placeholder="请输入昵称" type="text" bind-input="{{'$Cache_new_user.nickname'}}" />
            <input placeholder="请输入手机号" type="text" bind-input="{{'$Cache_new_user.phone'}}" />
            <input placeholder="请输入邮箱" type="text" bind-input="{{'$Cache_new_user.email'}}" />
            <div class="choice">
                <div class="item" event-click="{{'$Event.new_user_change_type'}}">
                    <i class="{{$Cache_new_user_is_teacher&&'icon-square'||'icon-squarecheck'}}"></i>学员</div>
                <div class="item" event-click="{{'$Event.new_user_change_type'}}">
                    <i name="teacher" class="{{$Cache_new_user_is_teacher&&'icon-squarecheck'||'icon-square'}}"></i>教员</div>
                <div class="item" event-click="{{'$Event.is_new_user'}}">取消</div>
                <button event-click="{{'$Event.create_new_user'}}">注册</button>
            </div>
        </div>
        <script type="text/javascript" src="/js/vendor/jquery-1.11.2.min.js"></script>
        <script type="text/javascript" src="/js/lib/jquery.cookie.js"></script>
        <script type="text/javascript" src="/js/vendor/jSouper.min.js"></script>
        <script type="text/javascript" src="/js/vendor/routie.min.js"></script>
        <script type="text/javascript" src="/js/login.js"></script>
    </body>

</html>